import store from '@/store'



export function hasHavepermi(perString) {
    const all_permission = "*:*:*";
    const permissions = store.getters && store.getters.permissions
    const arr = [null, undefined, '']
    if (!arr.includes(perString)) {
        console.log(perString);


        return permissions.some(permission => {

            return all_permission === permission || Object.is(permission, perString)
        })

    }
} 